package com.tang4j.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.tang4j.core.model.AbstractModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author saber
 * @since 2019-11-18
 */

@ApiModel(value = "ThSysNavigation", description = "菜单表")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Data
public class ThSysNavigation extends AbstractModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单编码")
    @TableField("code")
    private String code;


    @ApiModelProperty(value = "父编码")
    @TableField("pcode")
    private String pcode;

    @ApiModelProperty(value = "父菜单名称")
    @TableField(exist = false)
    private String pname;


    @ApiModelProperty(value = "所有父编码")
    @TableField("pcodes")
    private String pcodes;


    @ApiModelProperty(value = "系统编码")
    @TableField("os_code")
    private String osCode;


    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;


    @ApiModelProperty(value = "图标")
    @TableField("icon_cls")
    private String iconCls;


    @ApiModelProperty(value = "请求地址")
    @TableField("request_url")
    private String requestUrl;


    @ApiModelProperty(value = "层级")
    @TableField("levels")
    private Integer levels;


    @ApiModelProperty(value = "状态")
    @TableField("state")
    private Integer state;


    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;


    @ApiModelProperty(value = "排序")
    @TableField("order_no")
    private Integer orderNo;

    @ApiModelProperty(value = "是否禁用")
    @TableField("enable")
    protected Integer enable;

}
